package com.fm.openinstall.a;

import java.io.*;
import android.os.*;

public class e
{
    private static String a;

    private static String a(final File p0) {
        //
        // This method could not be decompiled.
        //
        // Original Bytecode:
        //
        //     1: newarray        B
        //     3: astore_2
        //     4: new             Ljava/io/RandomAccessFile;
        //     7: dup
        //     8: aload_0
        //     9: ldc             "r"
        //    11: invokespecial   java/io/RandomAccessFile.<init>:(Ljava/io/File;Ljava/lang/String;)V
        //    14: astore_1
        //    15: aload_2
        //    16: astore_0
        //    17: aload_1
        //    18: invokevirtual   java/io/RandomAccessFile.length:()J
        //    21: l2i
        //    22: newarray        B
        //    24: astore_2
        //    25: aload_2
        //    26: astore_0
        //    27: aload_1
        //    28: aload_2
        //    29: invokevirtual   java/io/RandomAccessFile.readFully:([B)V
        //    32: aload_2
        //    33: astore_0
        //    34: aload_1
        //    35: invokevirtual   java/io/RandomAccessFile.close:()V
        //    38: aload_2
        //    39: astore_0
        //    40: aload_1
        //    41: invokevirtual   java/io/RandomAccessFile.close:()V
        //    44: aload_0
        //    45: astore_2
        //    46: goto            79
        //    49: astore_0
        //    50: goto            56
        //    53: astore_0
        //    54: aconst_null
        //    55: astore_1
        //    56: aload_1
        //    57: ifnull          64
        //    60: aload_1
        //    61: invokevirtual   java/io/RandomAccessFile.close:()V
        //    64: aload_0
        //    65: athrow
        //    66: aconst_null
        //    67: astore_1
        //    68: aload_2
        //    69: astore_0
        //    70: aload_0
        //    71: astore_2
        //    72: aload_1
        //    73: ifnull          79
        //    76: goto            40
        //    79: aload_2
        //    80: arraylength
        //    81: ifne            86
        //    84: aconst_null
        //    85: areturn
        //    86: new             Ljava/lang/String;
        //    89: dup
        //    90: aload_2
        //    91: invokespecial   java/lang/String.<init>:([B)V
        //    94: areturn
        //    95: astore_0
        //    96: goto            66
        //    99: astore_2
        //   100: goto            70
        //   103: astore_1
        //   104: aload_0
        //   105: astore_2
        //   106: goto            79
        //   109: astore_1
        //   110: goto            64
        //    Exceptions:
        //  Try           Handler
        //  Start  End    Start  End    Type
        //  -----  -----  -----  -----  ---------------------
        //  4      15     95     70     Ljava/io/IOException;
        //  4      15     53     56     Any
        //  17     25     99     103    Ljava/io/IOException;
        //  17     25     49     53     Any
        //  27     32     99     103    Ljava/io/IOException;
        //  27     32     49     53     Any
        //  34     38     99     103    Ljava/io/IOException;
        //  34     38     49     53     Any
        //  40     44     103    109    Ljava/io/IOException;
        //  60     64     109    113    Ljava/io/IOException;
        //
        // The error that occurred was:
        //
        // java.lang.IndexOutOfBoundsException: Index: 72, Size: 72
        //     at java.util.ArrayList.rangeCheck(ArrayList.java:657)
        //     at java.util.ArrayList.get(ArrayList.java:433)
        //     at com.strobel.decompiler.ast.AstBuilder.convertToAst(AstBuilder.java:3321)
        //     at com.strobel.decompiler.ast.AstBuilder.build(AstBuilder.java:113)
        //     at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:211)
        //     at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:99)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:782)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:675)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:552)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:519)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:161)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:150)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.addType(AstBuilder.java:125)
        //     at com.strobel.decompiler.languages.java.JavaLanguage.buildAst(JavaLanguage.java:71)
        //     at com.strobel.decompiler.languages.java.JavaLanguage.decompileType(JavaLanguage.java:59)
        //     at us.deathmarine.luyten.DecompilerLinkProvider.generateContent(DecompilerLinkProvider.java:97)
        //     at us.deathmarine.luyten.OpenFile.decompileWithNavigationLinks(OpenFile.java:494)
        //     at us.deathmarine.luyten.OpenFile.decompile(OpenFile.java:467)
        //     at us.deathmarine.luyten.Model.extractClassToTextPane(Model.java:413)
        //     at us.deathmarine.luyten.Model.openEntryByTreePath(Model.java:339)
        //     at us.deathmarine.luyten.Model$TreeListener$1.run(Model.java:266)
        //
        throw new IllegalStateException("An error occurred while decompiling this method.");
    }

    public static String a(final String p0) {
        //
        // This method could not be decompiled.
        //
        // Original Bytecode:
        //
        //     2: monitorenter
        //     3: getstatic       com/fm/openinstall/a/e.a:Ljava/lang/String;
        //     6: ifnonnull       104
        //     9: invokestatic    android/os/StrictMode.getThreadPolicy:()Landroid/os/StrictMode$ThreadPolicy;
        //    12: astore_1
        //    13: new             Landroid/os/StrictMode$ThreadPolicy$Builder;
        //    16: dup
        //    17: aload_1
        //    18: invokespecial   android/os/StrictMode$ThreadPolicy$Builder.<init>:(Landroid/os/StrictMode$ThreadPolicy;)V
        //    21: invokevirtual   android/os/StrictMode$ThreadPolicy$Builder.permitDiskWrites:()Landroid/os/StrictMode$ThreadPolicy$Builder;
        //    24: invokevirtual   android/os/StrictMode$ThreadPolicy$Builder.permitDiskReads:()Landroid/os/StrictMode$ThreadPolicy$Builder;
        //    27: invokevirtual   android/os/StrictMode$ThreadPolicy$Builder.build:()Landroid/os/StrictMode$ThreadPolicy;
        //    30: invokestatic    android/os/StrictMode.setThreadPolicy:(Landroid/os/StrictMode$ThreadPolicy;)V
        //    33: invokestatic    android/os/Environment.getExternalStorageState:()Ljava/lang/String;
        //    36: ldc             "mounted"
        //    38: invokevirtual   java/lang/String.equals:(Ljava/lang/Object;)Z
        //    41: ifeq            100
        //    44: invokestatic    android/os/Environment.getExternalStorageDirectory:()Ljava/io/File;
        //    47: astore_2
        //    48: new             Ljava/lang/StringBuilder;
        //    51: dup
        //    52: invokespecial   java/lang/StringBuilder.<init>:()V
        //    55: astore_3
        //    56: aload_3
        //    57: aload_2
        //    58: invokevirtual   java/io/File.getAbsolutePath:()Ljava/lang/String;
        //    61: invokevirtual   java/lang/StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
        //    64: pop
        //    65: aload_3
        //    66: ldc             "/Installation"
        //    68: invokevirtual   java/lang/StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
        //    71: pop
        //    72: new             Ljava/io/File;
        //    75: dup
        //    76: aload_3
        //    77: invokevirtual   java/lang/StringBuilder.toString:()Ljava/lang/String;
        //    80: aload_0
        //    81: invokespecial   java/io/File.<init>:(Ljava/lang/String;Ljava/lang/String;)V
        //    84: astore_0
        //    85: aload_0
        //    86: invokestatic    com/fm/openinstall/a/e.a:(Ljava/io/File;)Ljava/lang/String;
        //    89: putstatic       com/fm/openinstall/a/e.a:Ljava/lang/String;
        //    92: goto            100
        //    95: ldc             Lcom/fm/openinstall/a/e;.class
        //    97: monitorexit
        //    98: aconst_null
        //    99: areturn
        //   100: aload_1
        //   101: invokestatic    android/os/StrictMode.setThreadPolicy:(Landroid/os/StrictMode$ThreadPolicy;)V
        //   104: getstatic       com/fm/openinstall/a/e.a:Ljava/lang/String;
        //   107: astore_0
        //   108: ldc             Lcom/fm/openinstall/a/e;.class
        //   110: monitorexit
        //   111: aload_0
        //   112: areturn
        //   113: astore_0
        //   114: ldc             Lcom/fm/openinstall/a/e;.class
        //   116: monitorexit
        //   117: aload_0
        //   118: athrow
        //   119: astore_0
        //   120: goto            95
        //    Exceptions:
        //  Try           Handler
        //  Start  End    Start  End    Type
        //  -----  -----  -----  -----  ---------------------
        //  3      85     113    119    Any
        //  85     92     119    100    Ljava/lang/Exception;
        //  85     92     113    119    Any
        //  100    104    113    119    Any
        //  104    108    113    119    Any
        //
        // The error that occurred was:
        //
        // java.lang.IllegalStateException: Expression is linked from several locations: Label_0095:
        //     at com.strobel.decompiler.ast.Error.expressionLinkedFromMultipleLocations(Error.java:27)
        //     at com.strobel.decompiler.ast.AstOptimizer.mergeDisparateObjectInitializations(AstOptimizer.java:2596)
        //     at com.strobel.decompiler.ast.AstOptimizer.optimize(AstOptimizer.java:235)
        //     at com.strobel.decompiler.ast.AstOptimizer.optimize(AstOptimizer.java:42)
        //     at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:214)
        //     at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:99)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:782)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:675)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:552)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:519)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:161)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:150)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.addType(AstBuilder.java:125)
        //     at com.strobel.decompiler.languages.java.JavaLanguage.buildAst(JavaLanguage.java:71)
        //     at com.strobel.decompiler.languages.java.JavaLanguage.decompileType(JavaLanguage.java:59)
        //     at us.deathmarine.luyten.DecompilerLinkProvider.generateContent(DecompilerLinkProvider.java:97)
        //     at us.deathmarine.luyten.OpenFile.decompileWithNavigationLinks(OpenFile.java:494)
        //     at us.deathmarine.luyten.OpenFile.decompile(OpenFile.java:467)
        //     at us.deathmarine.luyten.Model.extractClassToTextPane(Model.java:413)
        //     at us.deathmarine.luyten.Model.openEntryByTreePath(Model.java:339)
        //     at us.deathmarine.luyten.Model$TreeListener$1.run(Model.java:266)
        //
        throw new IllegalStateException("An error occurred while decompiling this method.");
    }

    private static void a(final File p0, final String p1) {
        //
        // This method could not be decompiled.
        //
        // Original Bytecode:
        //
        //     1: astore_3
        //     2: aconst_null
        //     3: astore_2
        //     4: new             Ljava/io/FileOutputStream;
        //     7: dup
        //     8: aload_0
        //     9: invokespecial   java/io/FileOutputStream.<init>:(Ljava/io/File;)V
        //    12: astore_0
        //    13: aload_0
        //    14: aload_1
        //    15: invokevirtual   java/lang/String.getBytes:()[B
        //    18: invokevirtual   java/io/FileOutputStream.write:([B)V
        //    21: aload_0
        //    22: invokevirtual   java/io/FileOutputStream.close:()V
        //    25: return
        //    26: astore_2
        //    27: aload_0
        //    28: astore_1
        //    29: aload_2
        //    30: astore_0
        //    31: goto            40
        //    34: goto            50
        //    37: astore_0
        //    38: aload_2
        //    39: astore_1
        //    40: aload_1
        //    41: ifnull          48
        //    44: aload_1
        //    45: invokevirtual   java/io/FileOutputStream.close:()V
        //    48: aload_0
        //    49: athrow
        //    50: aload_0
        //    51: ifnull          58
        //    54: aload_0
        //    55: invokevirtual   java/io/FileOutputStream.close:()V
        //    58: return
        //    59: astore_0
        //    60: aload_3
        //    61: astore_0
        //    62: goto            50
        //    65: astore_1
        //    66: goto            34
        //    69: astore_0
        //    70: return
        //    71: astore_1
        //    72: goto            48
        //    Exceptions:
        //  Try           Handler
        //  Start  End    Start  End    Type
        //  -----  -----  -----  -----  ---------------------
        //  4      13     59     65     Ljava/io/IOException;
        //  4      13     37     40     Any
        //  13     21     65     37     Ljava/io/IOException;
        //  13     21     26     34     Any
        //  21     25     69     71     Ljava/io/IOException;
        //  44     48     71     75     Ljava/io/IOException;
        //  54     58     69     71     Ljava/io/IOException;
        //
        // The error that occurred was:
        //
        // java.lang.IndexOutOfBoundsException: Index: 47, Size: 47
        //     at java.util.ArrayList.rangeCheck(ArrayList.java:657)
        //     at java.util.ArrayList.get(ArrayList.java:433)
        //     at com.strobel.decompiler.ast.AstBuilder.convertToAst(AstBuilder.java:3321)
        //     at com.strobel.decompiler.ast.AstBuilder.build(AstBuilder.java:113)
        //     at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:211)
        //     at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:99)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:782)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:675)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:552)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:519)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:161)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:150)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.addType(AstBuilder.java:125)
        //     at com.strobel.decompiler.languages.java.JavaLanguage.buildAst(JavaLanguage.java:71)
        //     at com.strobel.decompiler.languages.java.JavaLanguage.decompileType(JavaLanguage.java:59)
        //     at us.deathmarine.luyten.DecompilerLinkProvider.generateContent(DecompilerLinkProvider.java:97)
        //     at us.deathmarine.luyten.OpenFile.decompileWithNavigationLinks(OpenFile.java:494)
        //     at us.deathmarine.luyten.OpenFile.decompile(OpenFile.java:467)
        //     at us.deathmarine.luyten.Model.extractClassToTextPane(Model.java:413)
        //     at us.deathmarine.luyten.Model.openEntryByTreePath(Model.java:339)
        //     at us.deathmarine.luyten.Model$TreeListener$1.run(Model.java:266)
        //
        throw new IllegalStateException("An error occurred while decompiling this method.");
    }

    public static void a(final String s, final String s2) {
        synchronized (e.class) {
            final StrictMode.ThreadPolicy threadPolicy = StrictMode.getThreadPolicy();
            StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder(threadPolicy).permitDiskWrites().permitDiskReads().build());
            if (Environment.getExternalStorageState().equals("mounted")) {
                final File externalStorageDirectory = Environment.getExternalStorageDirectory();
                final StringBuilder sb = new StringBuilder();
                sb.append(externalStorageDirectory.getAbsolutePath());
                sb.append("/Installation");
                final File file = new File(sb.toString(), s);
                if (a(file) == null) {
                    final File parentFile = file.getParentFile();
                    if (!parentFile.exists()) {
                        parentFile.mkdirs();
                    }
                    a(file, s2);
                }
            }
            StrictMode.setThreadPolicy(threadPolicy);
        }
    }

    public static void b(final String p0, final String p1) {
        //
        // This method could not be decompiled.
        //
        // Original Bytecode:
        //
        //     2: monitorenter
        //     3: aload_1
        //     4: putstatic       com/fm/openinstall/a/e.a:Ljava/lang/String;
        //     7: invokestatic    android/os/StrictMode.getThreadPolicy:()Landroid/os/StrictMode$ThreadPolicy;
        //    10: astore_2
        //    11: new             Landroid/os/StrictMode$ThreadPolicy$Builder;
        //    14: dup
        //    15: aload_2
        //    16: invokespecial   android/os/StrictMode$ThreadPolicy$Builder.<init>:(Landroid/os/StrictMode$ThreadPolicy;)V
        //    19: invokevirtual   android/os/StrictMode$ThreadPolicy$Builder.permitDiskWrites:()Landroid/os/StrictMode$ThreadPolicy$Builder;
        //    22: invokevirtual   android/os/StrictMode$ThreadPolicy$Builder.permitDiskReads:()Landroid/os/StrictMode$ThreadPolicy$Builder;
        //    25: invokevirtual   android/os/StrictMode$ThreadPolicy$Builder.build:()Landroid/os/StrictMode$ThreadPolicy;
        //    28: invokestatic    android/os/StrictMode.setThreadPolicy:(Landroid/os/StrictMode$ThreadPolicy;)V
        //    31: invokestatic    android/os/Environment.getExternalStorageState:()Ljava/lang/String;
        //    34: ldc             "mounted"
        //    36: invokevirtual   java/lang/String.equals:(Ljava/lang/Object;)Z
        //    39: ifeq            109
        //    42: invokestatic    android/os/Environment.getExternalStorageDirectory:()Ljava/io/File;
        //    45: astore_3
        //    46: new             Ljava/lang/StringBuilder;
        //    49: dup
        //    50: invokespecial   java/lang/StringBuilder.<init>:()V
        //    53: astore          4
        //    55: aload           4
        //    57: aload_3
        //    58: invokevirtual   java/io/File.getAbsolutePath:()Ljava/lang/String;
        //    61: invokevirtual   java/lang/StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
        //    64: pop
        //    65: aload           4
        //    67: ldc             "/Installation"
        //    69: invokevirtual   java/lang/StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
        //    72: pop
        //    73: new             Ljava/io/File;
        //    76: dup
        //    77: aload           4
        //    79: invokevirtual   java/lang/StringBuilder.toString:()Ljava/lang/String;
        //    82: aload_0
        //    83: invokespecial   java/io/File.<init>:(Ljava/lang/String;Ljava/lang/String;)V
        //    86: astore_0
        //    87: aload_0
        //    88: invokevirtual   java/io/File.getParentFile:()Ljava/io/File;
        //    91: astore_3
        //    92: aload_3
        //    93: invokevirtual   java/io/File.exists:()Z
        //    96: ifne            104
        //    99: aload_3
        //   100: invokevirtual   java/io/File.mkdirs:()Z
        //   103: pop
        //   104: aload_0
        //   105: aload_1
        //   106: invokestatic    com/fm/openinstall/a/e.a:(Ljava/io/File;Ljava/lang/String;)V
        //   109: aload_2
        //   110: invokestatic    android/os/StrictMode.setThreadPolicy:(Landroid/os/StrictMode$ThreadPolicy;)V
        //   113: ldc             Lcom/fm/openinstall/a/e;.class
        //   115: monitorexit
        //   116: return
        //   117: astore_0
        //   118: ldc             Lcom/fm/openinstall/a/e;.class
        //   120: monitorexit
        //   121: aload_0
        //   122: athrow
        //   123: astore_0
        //   124: goto            109
        //    Exceptions:
        //  Try           Handler
        //  Start  End    Start  End    Type
        //  -----  -----  -----  -----  ---------------------
        //  3      46     117    123    Any
        //  46     104    123    127    Ljava/lang/Exception;
        //  46     104    117    123    Any
        //  104    109    123    127    Ljava/lang/Exception;
        //  104    109    117    123    Any
        //  109    113    117    123    Any
        //
        // The error that occurred was:
        //
        // java.lang.IllegalStateException: Expression is linked from several locations: Label_0104:
        //     at com.strobel.decompiler.ast.Error.expressionLinkedFromMultipleLocations(Error.java:27)
        //     at com.strobel.decompiler.ast.AstOptimizer.mergeDisparateObjectInitializations(AstOptimizer.java:2596)
        //     at com.strobel.decompiler.ast.AstOptimizer.optimize(AstOptimizer.java:235)
        //     at com.strobel.decompiler.ast.AstOptimizer.optimize(AstOptimizer.java:42)
        //     at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:214)
        //     at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:99)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:782)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:675)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:552)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:519)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:161)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:150)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.addType(AstBuilder.java:125)
        //     at com.strobel.decompiler.languages.java.JavaLanguage.buildAst(JavaLanguage.java:71)
        //     at com.strobel.decompiler.languages.java.JavaLanguage.decompileType(JavaLanguage.java:59)
        //     at us.deathmarine.luyten.DecompilerLinkProvider.generateContent(DecompilerLinkProvider.java:97)
        //     at us.deathmarine.luyten.OpenFile.decompileWithNavigationLinks(OpenFile.java:494)
        //     at us.deathmarine.luyten.OpenFile.decompile(OpenFile.java:467)
        //     at us.deathmarine.luyten.Model.extractClassToTextPane(Model.java:413)
        //     at us.deathmarine.luyten.Model.openEntryByTreePath(Model.java:339)
        //     at us.deathmarine.luyten.Model$TreeListener$1.run(Model.java:266)
        //
        throw new IllegalStateException("An error occurred while decompiling this method.");
    }
}
